{%extends 'base.html'%}
{% block body %}



<div class="container">

    <div class="center">
        <h1>用户注册</h1>
    </div>

    <div class="row">
        <div class="col-md-3 col-sm-2"></div>
        <div class="col-md-6 col-sm-8 col-xs-12">
            <form action="/register_" method="POST">
                <div class="form-group">
                    <label for="exampleInputEmail1">请输入你的手机号码</label>

                    <div class="container-full">

                        <div class="row">

                            <div class="col-xs-7 col-sm-7 col-md-9">
                                <!-- <label for="exampleInputEmail1">请输入你的手机号码</label> -->
                                <input type="text" class="form-control"
                                    pattern="(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$"
                                    required="required" id="exampleInputEmail1" placeholder="请输入你的手机号码" name="phone">
                            </div>
                            <div class="col-xs-5 col-sm-5 col-md-3">
                                <button type="submit" id="myDiv" class="btn btn-default">获取验证码</button>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword2">请输入手机验证码</label>
                    <input type="text" class="form-control" required="required" id="exampleInputPassword2"
                        placeholder="请输入手机验证码" name="notify_code">
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword3">请输入你的公司名称</label>
                    <input type="text" class="form-control" required="required" id="exampleInputPassword3"
                        placeholder="请输入你的公司名称" name="company_name">
                </div>

                <div class="form-group">
                    <label for="exampleInputPassword4">请输入你的姓名</label>
                    <input type="text" class="form-control" required="required" id="exampleInputPassword4"
                        placeholder="请输入你的姓名" name="linkman">
                </div>

                <!-- openid -->
                <input type="hidden" class="form-control" id="exampleInputPassword1" placeholder="openid" name="free_id"
                    value="{{g.id}}">




                <div class="radio">
                    <label class="radio-inline">
                        <input type="radio" name="party" value="A" checked> 甲方
                    </label>

                    <label class="radio-inline">
                        <input type="radio" name="party" value="B"> 乙方
                    </label>
                </div>

                <div class="form-group">
                    <label for="exampleInputPassword1">甲方请输入需求/乙方请输入资源</label>
                    <!-- <input type="text" class="form-control" id="need" placeholder="need"" name="need"> -->
                    <textarea class="form-control" rows="3" name="need" required="required"></textarea>
                </div>



                <div class="center">
                    <button type="submit" class="btn btn-default">提 交</button>

                </div>
            </form>
        </div>


    </div>

</div>
<!-- END container one-->


{% endblock %}

{% block script %}
<script type="text/javascript">
    document.getElementById("demo").innerHTML = "注册";
</script>
{% endblock %}